package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.base.BaseRespVo;
import com.doge.mapper.FootprintMapper;
import com.doge.service.admin.footprint.FootprintServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2-wechat-mall
 * @description: 历史足迹
 * @author: zhu lei
 * @create: 2021-11-30 16:01
 **/
@RequestMapping("/admin/footprint")
@RestController
public class FootprintController {
    @Autowired
    FootprintServiceImpl footprintService;

    @RequestMapping("list")
    public BaseRespVo footPrint(Integer userId, Integer goodsId, BaseParam baseParam) {
        BaseData baseData = footprintService.footprintList(userId, goodsId, baseParam);
        return BaseRespVo.ok(baseData);
    }
}